package com.google.samples.apps.room.data

import android.app.Application
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel

/**
 * Created by Administrator on 2021/7/9 0009.
 * Describe:
 */
class UserViewModel() : ViewModel() {

    init {
    }

    fun getLiveDataUser(context: Context): LiveData<List<User>> {
        return UserDatabase.getInstance(context)
            .userDao().getUsers()
    }

}